#include"masini.h"

CSedan::CSedan(char *a,char *b,char *c,char *d,char *e):CMasina(a,b)
{	this->dim1=new char[strlen(c)+2];
	this->dot1=new char[strlen(d)+2];
	this->monit1=new char[strlen(e)+2];
	strcpy(this->dim1,c);
	strcpy(this->dot1,d);
	strcpy(this->monit1,e);

}

void CSedan::afisare()
{

	cout<<this->culoare<<","<<this->transmisie<<","<<this->dim1<<","<<this->dot1<<","<<this->monit1;
}

CCoupe::CCoupe(char *a,char *b,float c,char *d,char *e):CMasina(a,b)
{		
this->dot2=new char[strlen(d)+2];
this->monit2=new char[strlen(e)+2];
	this->cost=c;
	strcpy(this->dot2,d);
	strcpy(this->monit2,e);
}
void CCoupe::afisare()
{

	cout<<this->culoare<<","<<this->transmisie<<","<<this->cost<<","<<","<<this->dot2<<","<<this->monit2;
}

CMini::CMini(char *a,char *b,int c,char *d,char *e):CMasina(a,b)
{   
		
	this->dot3=new char[strlen(d)+2];
	this->dim3=new char[strlen(e)+2];
	this->viteza=c;
	strcpy(this->dot3,d);
	strcpy(this->dim3,e);
}

void CMini::afisare()
{

	cout<<this->culoare<<","<<this->transmisie<<","<<this->viteza<<","<<this->dot3<<","<<this->dim3;
}


